package com.example.ssrbac.service;

import com.example.ssrbac.dto.RoleDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Set;

public interface RoleService {
    RoleDTO createRole(RoleDTO roleDTO);
    RoleDTO updateRole(Long id, RoleDTO roleDTO);
    void deleteRole(Long id);
    RoleDTO getRoleById(Long id);
    Page<RoleDTO> getAllRoles(Pageable pageable);
    RoleDTO assignPermissions(Long roleId, Set<Long> permissionIds);
} 